/*
 * 组件注释
 * @Author: machinist_wq
 * @Date: 2022-05-03 12:50:21
 * @LastEditors: machinist_wq
 * @LastEditTime: 2022-09-02 22:01:16
 * @Description: forceUpdate
 * 人生无常！大肠包小肠......
 */
"use strict";
import { useReducer, useCallback } from "react";

const Index = () => {
  const [_, dispacth] = useReducer((x: number): number => x + 1, 0);

  const forceUpdate = useCallback(() => dispacth(), []);

  return [forceUpdate];
};
export default Index;
